<!-- display list -->
    <form action="./" method="get">

        <table cellspacing="0" summary="" class="boardList">
        <thead>
            {@ $no_line_class = " no_line" }
            <tr>
                <!--@if($grant->manager)--> 
                <th scope="col" class="checkbox{$no_line_class}"><div>
                    <input type="checkbox" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" />
                </div></th>
                {@ $no_line_class=""}
                <!--@end-->

                <th scope="col" class="topic{$no_line_class}"><div>
                    
                    <!--@if($module_info->use_category == "Y")-->
                    <!--// display the categories if the category is enabled -->
                        <select name="category" id="board_category">
                            <option value="">{$lang->category}</option>
                            <!--@foreach($category_list as $val)-->
                            <option value="{$val->category_srl}" <!--@if($category==$val->category_srl)-->selected="selected"<!--@end-->>{str_repeat("&nbsp;&nbsp;",$val->depth)} {$val->title} <!--@if($val->document_count)-->({$val->document_count})<!--@end--></option>
                            <!--@end-->
                        </select>

                        <input type="button" name="go_button" id="go_button" value="GO" onclick="doChangeCategory()" />

                    <!--@else-->

                        {$lang->topic}

                    <!--@end-->
                </div></th>

                <th class="reading" scope="col"><div>
                    <a href="{getUrl('sort_index','comment_count','order_type',$order_type)}">{$lang->replies}<!--@if($sort_index=='comment_count')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a>
                </div></th>

                <th class="reading" scope="col"><div>
                    <a href="{getUrl('sort_index','readed_count','order_type',$order_type)}">{$lang->readed_count}<!--@if($sort_index=='readed_count')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a>
                </div></th>

                <th scope="col" class="date"><div>
                    <a href="{getUrl('sort_index','last_update','order_type',$order_type)}">{$lang->last_post}<!--@if($sort_index=='last_update')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a>
                </div></th>
            </tr>
        </thead>

        <tbody>

        <!--@if(!$document_list && !$notice_list)-->
            <!--// display no documents message if there aren't documents -->
            <tr class="bg0 tCenter">
                <td colspan="<!--@if($grant->manager)-->5<!--@else-->4<!--@end-->" class="title">
                    {$lang->no_documents}
                </td>
            </tr>
        <!--@else-->

            <!--// display notice list -->
            <!--@foreach($notice_list as $no => $document)-->
                <tr class="notice">
                    <!--@if($grant->manager)-->
                    <td class="checkbox">
                        <input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> />
                    </td>
                    <!--@end-->

                    <td class="topic">

                        <strong>{$lang->notice} | <a href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}">{$document->getTitle($module_info->subject_cut_size)}</a></strong>
                        {$document->printExtraImages(60*60*$module_info->duration_new)}

                        <!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
                        <span class="category">{$category_list[$document->get('category_srl')]->title}</span>
                        <!--@end-->

                        <div class="author">
                            by <strong><span class="member_{$document->get('member_srl')}">{$document->getNickName()}</span></strong> on <strong>{$document->getRegdate('Y-m-d H:i')}</strong>
                        </div>

                    </td>
                    <td class="commentCount">{(int)($document->get('comment_count'))}</td>
                    <td class="reading">{(int)($document->get('readed_count'))}</td>
                    <td class="latestPost">
                        <div class="author">
                            <!--@if($document->getLastUpdater())-->
                                by <strong>{$document->getLastUpdater()}</strong>
                            <!--@else-->
                                by <strong><span class="member_{$document->get('member_srl')}">{$document->getNickName()}</span></strong>
                            <!--@end-->
                        </div>
                        <div class="date">
                            on <strong>{zdate($document->get('last_update'),'Y-m-d H:i')}</strong>
                        </div>
                    </td>
                </tr>
            <!--@end-->

            <!--// display document list-->
            <!--@foreach($document_list as $no => $document)-->
                <tr class="bg{($no+1)%2+1}">
                    <!--@if($grant->manager)-->
                    <td class="checkbox">
                        <input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> />
                    </td>
                    <!--@end-->

                    <td class="topic">

                        <strong><a href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}">{$document->getTitle($module_info->subject_cut_size)}</a></strong>

                        {$document->printExtraImages(60*60*$module_info->duration_new)}

                        <!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
                        <span class="category">{$category_list[$document->get('category_srl')]->title}</span>
                        <!--@end-->

                        <div class="author">
                            by <strong><span class="member_{$document->get('member_srl')}">{$document->getNickName()}</span></strong> on <strong>{$document->getRegdate('Y-m-d H:i')}</strong>
                        </div>
                    </td>
                    <td class="commentCount">{(int)($document->get('comment_count'))}</td>
                    <td class="reading">{(int)($document->get('readed_count'))}</td>
                    <td class="latestPost">
                        <div class="author">
                            <!--@if($document->getLastUpdater())-->
                                by <strong>{$document->getLastUpdater()}</strong>
                            <!--@else-->
                                by <strong><span class="member_{$document->get('member_srl')}">{$document->getNickName()}</span></strong>
                            <!--@end-->
                        </div>
                        <div class="date">
                            on <strong>{zdate($document->get('last_update'),'Y-m-d H:i')}</strong>
                        </div>
                    </td>
                </tr>
            <!--@end-->
        <!--@end-->

        </tbody>
        </table>
    </form>

